package ch8.Fly;
//蝙蝠
public class Bat implements Fly {
    private String species;//种类

    @Override
    public void fly() {
        System.out.println(this.species+"通过嘴巴发出超声波导航飞行。");
    }

    public Bat(String species) {
        this.species = species;
    }

    public String getSpecies() {
        return species;
    }

    public void setSpecies(String species) {
        this.species = species;
    }
}
